## Pre-defined animation.
##
##class DefAnimTransRot():
import animation
from keyframe import PosKeyFrame, RotKeyFrame

## FUTURO - Chamar bringObj.py
## * The code bellow is responsable for creating keyframe animation structure to bring an' object near to the user.
def anim_bringObj(firstFrame, lastFrame, nFrames):
    #self.firstFrame = firstFrame
    #self.lastFrame = lastFrame
    #self.nframes = nframes
    anim = animation.Animation([PosKeyFrame(firstFrame,  [0, 0, 0]),
                                PosKeyFrame(lastFrame,  [0, 0, -1.2])])
    interptrans = anim.interpolate(nFrames, firstFrame)

    return anim, interptrans